package practice06;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice06
 * @ClassName: Teacher
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/8 15:11
 * @Copyright 大牛版板所有
 */
public class Teacher extends Person {
    private int jobNo;
    private double salary;
    private String department;
    private String jobRank;

    public Teacher() {
    }

    public Teacher(String name, String gender, int age, int jobNo, double salary, String department, String jobRank) {
        super(name, gender, age);
        this.jobNo = jobNo;
        this.salary = salary;
        this.department = department;
        this.jobRank = jobRank;
    }

    public int getJobNo() {
        return jobNo;
    }

    public void setJobNo(int jobNo) {
        this.jobNo = jobNo;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getJobRank() {
        return jobRank;
    }

    public void setJobRank(String jobRank) {
        this.jobRank = jobRank;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "jobNo=" + jobNo +
                ", salary=" + salary +
                ", department='" + department + '\'' +
                ", jobRank='" + jobRank + '\'' +
                '}';
    }
}
